/////////////////////////////////////////////////////////////////////////////
// Name:        wixtin_auiapp.cpp
// Purpose:     
// Author:      Stephen Whittle
// Modified by: 
// Created:     07/06/2009 12:11:14
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes
#include "globals.h"
#include "wixtin_auiapp.h"
#include "wx/stdpaths.h"
#include "wx/filename.h"
#include "engine.h"
////@begin XPM images
////@end XPM images


/*
 * Application instance implementation
 */

////@begin implement app
IMPLEMENT_APP( wxtinaui )
////@end implement app


/*
 * wxtinaui type definition
 */

IMPLEMENT_CLASS( wxtinaui, wxApp )


/*
 * wxtinaui event table definition
 */

BEGIN_EVENT_TABLE( wxtinaui, wxApp )

////@begin wxtinaui event table entries
////@end wxtinaui event table entries

END_EVENT_TABLE()


/*
 * Constructor for wxtinaui
 */

wxtinaui::wxtinaui()
{
    Init();
}


/*
 * Member initialisation
 */

void wxtinaui::Init()
{
////@begin wxtinaui member initialisation
////@end wxtinaui member initialisation
}

/*
 * Initialisation for wxtinaui
 */

bool wxtinaui::OnInit()
{    
////@begin wxtinaui initialisation
	// Remove the comment markers above and below this block
	// to make permanent changes to the code.

#if wxUSE_XPM
	wxImage::AddHandler(new wxXPMHandler);
#endif
#if wxUSE_LIBPNG
	wxImage::AddHandler(new wxPNGHandler);
#endif
#if wxUSE_LIBJPEG
	wxImage::AddHandler(new wxJPEGHandler);
#endif
#if wxUSE_GIF
	wxImage::AddHandler(new wxGIFHandler);
#endif
	wixtin* mainWindow = new wixtin( NULL );
	mainWindow->Show(true);
////@end wxtinaui initialisation


    return true;
}


/*
 * Cleanup for wxtinaui
 */

int wxtinaui::OnExit()
{    
////@begin wxtinaui cleanup
	return wxApp::OnExit();
////@end wxtinaui cleanup
}

